package net.guerlab.sdk.anubis;

import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import net.guerlab.sdk.anubis.accesstoken.AccessTokenDTO;
import net.guerlab.sdk.anubis.request.AccessTokenRequest;

/**
 * AccessToken demo
 * 
 * @author guer
 *
 */
public class AccessTokenDemo {

    private static final Logger LOGGER = LoggerFactory.getLogger(AccessTokenDemo.class);

    /**
     * 获取access token
     */
    @Test
    public void accessToken() {

        AccessTokenRequest request = new AccessTokenRequest();

        AccessTokenDTO accessTokenDTO = DemoConfig.CLIENT.execute(request).getData();

        LOGGER.debug("accessToken info : {}", accessTokenDTO);
    }
}
